package com.sixkey.config.rabbitmqconfig;

/**
 * ClassName: RabbitMQConfig
 * Package: com.sixkey.config.rabbitmqconfig
 * Description:
 *
 * @Author: @weixueshi
 * @Create: 2023/10/15 - 18:29
 * @Version: v1.0
 */

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * MQ消息转换器 可以让MQ传对象之类
 */
@Configuration
public class RabbitMQConfig {
    @Bean
    public MessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}
